package Eyjafjalla.card.skill;

import Eyjafjalla.action.MissSoundAction;
import Eyjafjalla.action.SevenColorAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import Eyjafjalla.card.status.Cloud_Eyjafjalla;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class SevenColor_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "SevenColor_Eyjafjalla";
    private static final CardStrings cardStrings;

    public SevenColor_Eyjafjalla(){
        super(ID, cardStrings.NAME,-1,cardStrings.DESCRIPTION,CardType.SKILL,CardRarity.COMMON,CardTarget.NONE);
        this.exhaust = true;
        cardsToPreview = new Cloud_Eyjafjalla();
        cardsToPreview.upgrade();
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
    }

    @Override
    public AbstractCard makeCopy() {
        return new SevenColor_Eyjafjalla();
    }


    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        int extra = 0;
        if(upgraded)
            extra++;
        if(isFire())
            extra++;
        addToBot(new SevenColorAction(p,freeToPlayOnce,energyOnUse,extra));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            rawDescription = cardStrings.UPGRADE_DESCRIPTION;
            initializeDescription();
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}


